<?= $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>  

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title><?=$this->placeholder('title') ?> - Theme index.phtml</title> 
  <link href="/public/themes/prime/css/hvn_onecol.css" media="screen" rel="stylesheet" type="text/css" />
  <link href="/public/themes/prime/css/jsddm.css" media="screen" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="/public/library/jquery/jquery.js"></script>
  <script type="text/javascript" src="/public/library/hvn/hvn.js"></script>
  <script type="text/javascript" src="/public/themes/prime/js/ddm.js"></script>
  <script src="/public/library/jquery/thickbox/jquery.DOMWindow.js" type="text/javascript"></script>

<meta name="description" content="<?=$this->placeholder('description') ?>">
<meta name="keywords" content="<?=$this->placeholder('keywords') ?>">

<script type="text/javascript">
$(function() {
    var currentMenu = '<?=$this->placeholder("currentPage")?>';
    
    var pages = new Array();
    
    pages[0] = "home"; 
    pages[1] = "place";
    pages[2] = "event";
    pages[3] = "tour";
    
    if (in_array(currentMenu, pages))
    {
        $('#menu .menu-item').hover(
            function(){
                $(this).addClass('hover-state').removeClass('normal-state');  
             },
             function(){
                $(this).removeClass('hover-state').addClass('normal-state');        
                $('#' + currentMenu).addClass('hover-state').removeClass('normal-state');
             }
         ).
         click(
            function(e)
            {   
                window.location.href = $(this).find('a').attr('href');
            }
         );
         $('#' + currentMenu).addClass('hover-state').removeClass('normal-state');
     }
});
</script>

</head>
<body>


<?  
    $holderWeights = Zend_Registry::get('holderWeights');
    asort ($holderWeights );
?>

<div id="user-menu">
         <?$region1BoxId = 0;    
         foreach ($holderWeights as $k=>$v) :?>
            <?if (strpos ($k, 'region1') === 0) :?>
                <? $region1BoxId ++;?>
                <? if ($region1BoxId === 1) :?>
                <div class='region1'>
                <?endif?>
                    <div  class='box1' id="<?=$k.'_weight'.$v?>">
                    <?echo $this->placeholder($k) ;?>
                    </div>
            <?endif ?>
        <? endforeach ?>
        
        <? if ($region1BoxId > 0) :?>
                 </div>
         <?endif?>
</div>

<div id="banner">
    <div id="banner_content">
            <a href="/en/home/index" title="One click, know Vietnam"><img src="/public/themes/prime/images/banner/logo.gif" alt="herevietnam logo" border=0/></a>
            <span style="padding-top:7px;margin-left:35px;"><img src="images/banner/banner_quang_cao.gif" /></span>
    </div>
</div>


<div id="body-wrapper">

    <div id="menu">
        
        <div class="corner-left">&nbsp;</div>
        <div class="menu"> 
            <div style="padding-top:15px;">
                <div class="menu-item normal-state" id="home"> Home </div>
                <div class="menu-item normal-state" id="place"> Places </div>
                <div class="menu-item normal-state" id="event"> Events </div>
                <div class="menu-item normal-state" id="tour"> Tours </div>
                <div class="menu-item normal-state" id="info"> Info </div>  
            </div>
        
        </div>
        <div class="languages"> 
            <div style="padding-right:30px;padding-top:30px;float:right">
            <?echo $this->placeholder('regionx_box1') ;?>
            </div>
        </div>      
        <div class="corner-right">&nbsp;</div>

    </div>
    <div class="clear"></div>
    <div style="height:10px">
        <br/>
    </div>
    <div id="content-container">
        <div id="content">
            <? 
                 $region4BoxId = 0;    
                 foreach ($holderWeights as $k=>$v) :?>
                <?if (strpos ($k, 'region4') === 0) :?>
                <? $region4BoxId ++;?>
                <? if ($region4BoxId === 1) :?>
                <div class='region4'>
                <?endif?>
                    <div  class='box' id="<?=$k.'_weight'.$v?>">
        
                        <?echo $this->placeholder($k);?>
                   </div>
                <?endif ?>
            <? endforeach ?>
                <? if ($region4BoxId > 0) :?>
                </div>
             <?endif?>
        </div>
    </div>
    

    <div id="content-bottom">
	 <br/>
		<hr color="#d6d6d6"/>
		<span class="footer"> <a href="#" class="footer"> About Gome </a> &nbsp;&nbsp;</span>
		<span class="footer"> <a href="#" class="footer"> Terms of Use </a> &nbsp;&nbsp;</span>
		<span class="footer"> <a href="#" class="footer"> Privacy Policy </a> &nbsp;&nbsp;</span>
		<span class="footer"> <a href="#" class="footer"> Advertising Program </a> &nbsp;&nbsp;</span>
		<span class="footer"> <a href="#" class="footer"> Contact us </a> &nbsp;&nbsp;</span>
		<span class="footer"> <a href="#" class="footer"> Register </a> &nbsp;&nbsp;</span>
		<span class="footer"> <a href="#" class="footer"> Forum </a> &nbsp;&nbsp;</span>
		<span class="footer"> <a href="#" class="footer"> Help </a> &nbsp;&nbsp;</span>
    </div>

    <div id="footer">
    	@ 2009 GomeVietnam ,. JSC
    </div>
</div> <!-- bodyWrapper -->
</body>
</html>
